package cn.jh.smartos.service;

import java.net.Socket;
import java.util.HashMap;

/**
 * Created by pjh on 18/3/12.
 */

class HttpContext {
    private final HashMap<String, String> requestHeaders;

    public HttpContext(){
        requestHeaders = new HashMap<String, String>();
    }
    private Socket underlySocket;

    public void setUnderlySocket(Socket socket) {
        this.underlySocket=socket;
    }
    public Socket getUnderlySocket(){
        return this.underlySocket;
    }

    public void addRequestHeader(String headName, String headerValue) {
        requestHeaders.put(headName,headerValue);

    }
    public String getRequestHeadValue(String headerName){
        return requestHeaders.get(headerName);
    }


}
